<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>
		<%@ include file="/commons/include/head-meta.inc.jsp"%>
		<script type="text/javascript">
			function startImproveFlow(){
				if(confirm("你确认要启动产品优化需求流程吗？")){
					var dForm=document.forms[0];
					dForm.submit();
				}
			}
			
			$(document).ready(function(){
				var importanceIdValue='${prodAdvReq.importance.name}';
				var typeIdValue='${prodAdvReq.type.name}';
				Echoice.selectOptionValue('importanceId',importanceIdValue);
				Echoice.selectOptionValue('typeId',typeIdValue);
				
			});
			
			
		</script>
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
		<form name="applyForm" action="flowReq_startReq.action" method="post"
			enctype="multipart/form-data">
			<input type="hidden" id="isCommitId" name="isCommit" value="" />
			<input type="hidden" name="flowTaskId"
				value="${taskView.procTranRecord.id }" />
			
			<table width="980" border="0" cellspacing="0" cellpadding="0"
				align="center">
				<tr>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="0"
							background="<s:url value="/images/new/gxzl_index_2.gif"/>">

							<tr>
								<td width="20" height="32">
									&nbsp;
								</td>
								<td width="20">
									<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
										height="12" />
								</td>
								<td>
									当前位置：
									<font color="#003399">业务需求交互单</font>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td background="" class="leftbg">
						<table width="98%" border="0" cellspacing="0" cellpadding="0"
							align="center" bgcolor="#FFFFFF">
							<tr>
								<td width="20%" valign="top">
									<div style="margin-left: 20px; margin-top: 5px; margin-bottom: 5px; margin-right: 20px">
										<s:if test="prodAdvReq.tranStatus=='PASS'||prodAdvReq.tranStatus=='DOPASS'">
											<input type="hidden" name="procinstId"
												value="<s:property value="#request.prodAdvReq.procinstId"/>">
											<input type="hidden" name="reqId"
												value="<s:property value="#request.prodAdvReq.id"/>">
											<input type="button"
												onclick="commitForm('flowReq_startReq.action',true);"
												style="margin-right: 6px; padding: 0" value="启动产品优化需求流程" />
											<input type="button" value="返 回" onClick="location.href='flowReq_searchProdAdvReqFJList.action'">
										</s:if>
									</div>
									<table width="96%" border="0" cellspacing="0" cellpadding="0"
										align="center" bgcolor="#FFFFFF">
										<tr>
											<td valign="top" align="center">
												<%-- 
												<jsp:include page="inc/processInstInfo.inc.jsp"></jsp:include>
												--%>
												<jsp:include page="inc/nextNodeSetepForStart.inc.jsp"></jsp:include>
												
												<table width="100%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td
															background="<s:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px">
																<img
																	src="<s:url value="/images/catalog_manage_12.gif"/>"
																	width=13 height=13 alt=""> </span>
															<strong>基本信息</strong>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																名&nbsp;&nbsp;&nbsp;&nbsp;称：
															</div>
														</td>
														<td colspan="3">
															<input type="text" name="businessRequest.name" maxlength="128" value="${prodAdvReq.name }" dataType="Require" msg="必填" style="width: 90%;"/>
															
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																发 起 人：
															</div>
														</td>
														<td width="36%">
															${prodAdvReq.startPerson.name}
														</td>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																发起部门：
															</div>
														</td>
														<td width="36%">
															${prodAdvReq.startDept.fullName}
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																需求单号：
															</div>
														</td>
														<td>
															${prodAdvReq.reqCode}
														</td>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2"></div>
														</td>
														<td>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																期望完成时间：
															</div>
														</td>
														<td>
															<s:date name="prodAdvReq.advanTime" format="yyyy年MM月dd日" />
														</td>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																发起时间：
															</div>
														</td>
														<td width="36%">
															<s:date name="prodAdvReq.begin" format="yyyy年MM月dd日" />
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="140">
															<div align="right" class="STYLE2">
																产品经理：
															</div>
														</td>
														<td width="268">

															<select name="prodPerson" style="width: 160px" id="prodPersonId" dataType="Require" msg="必选">
																<option value="${prodAdvReq.prodPerson.id}">
																	${prodAdvReq.prodPerson.name}																	
																</option>
																<s:iterator value="#request.prodList">
																	<option value="${id }">${name }</option>	
																</s:iterator>
															</select>
															<%-- 
															<button type="button" onclick="selectMainPerson('prodPersonId')" style="margin-left: 5px">
																选择人员
															</button>
															--%>
														</td>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																产品部门：
															</div>
														</td>
														<td>
															${prodAdvReq.prodDept.fullName}
															<input type="hidden" name="prodDeptObj"
																value="${prodAdvReq.prodDept.id}">
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																需求类别：
															</div>
														</td>
														<td>
															<s:select name="typeId" list="types" listKey="name"
																listValue="name" theme="css_xhtml" />
														</td>


														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																重要性：
															</div>
														</td>
														<td>
															<s:select name="importanceId"
															list="importances" listKey="name" listValue="name"
															theme="css_xhtml" />
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																内&nbsp;&nbsp;&nbsp;&nbsp;容：
															</div>
														</td>
														<td colspan="3" style="height: 60px">
															
															<textarea name="businessRequest.content" style="width: 99%;height: 80px" dataType="LimitB" min="1" max="4000" msg="必填">${prodAdvReq.content}</textarea>	
															<font color="red">2000个汉字之内</font>
														</td>
													</tr>

													<tr>
														<td width="111" bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																附&nbsp;&nbsp;&nbsp;&nbsp;件：
															</div>
														</td>
														<td colspan="3">
															<jsp:include page="inc/taskDocList.inc.jsp"></jsp:include>
														</td>
													</tr>
												</table>

												<table width="100%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td
															background="<s:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px"><img
																	src="<s:url value="/images/catalog_manage_12.gif"/>"
																	width="13" height="13" alt=""> </span>
															<strong>办理过程</strong>
														</td>
													</tr>

													<tr>
														<td><jsp:include page="inc/taskDetailList.inc.jsp"></jsp:include>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>